package com.fowo.api.model.ship.plans.shipment;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 发货计划货件关联 导入导出辅助模型 */
@Getter
@Setter
public class ShipPlansShipmentExcelPo {

  @ExcelProperty(value = "发货计划ID")
  private Long planId;

  @Size(max = 50, message = "计划编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "计划编号")
  private String planOrder;

  @Size(max = 50, message = "货件id长度不能超过20")
  @ExcelProperty(value = "货件id")
  private Long shipmentId;

  @Size(max = 50, message = "货件号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "货件号")
  private String shipmentOrder;

  @ExcelProperty(value = "申报量")
  private Integer shipmentNum;
}
